.props-demo {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin: 20px 0;
}

.props-demo h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.demo-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
}

.demo-section h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 8px;
}

/* 用户卡片 */
.user-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.user-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.user-card h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}

.user-card p {
  margin: 5px 0;
  opacity: 0.9;
  font-size: 14px;
}

/* 产品卡片 */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.product-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 10px;
}

.description {
  margin-bottom: 15px;
  opacity: 0.9;
  font-size: 14px;
}

.buy-btn {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 按钮演示 */
.button-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  color: white;
}

.btn-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.btn-secondary {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-medium {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-large {
  padding: 12px 24px;
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 卡片演示 */
.card-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.card-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.card-body {
  padding: 20px;
}

.card-body p {
  margin: 10px 0;
  opacity: 0.9;
}

.card-body ul {
  margin: 10px 0;
  padding-left: 20px;
}

.card-body li {
  margin: 5px 0;
  opacity: 0.9;
}

.card-footer {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: right;
}

/* 计数器演示 */
.counter-demo {
  text-align: center;
  margin-top: 15px;
}

.counter {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.counter h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 20px;
}

.counter-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* 数据表格 */
.data-table {
  margin-top: 15px;
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  text-align: left;
  font-weight: bold;
  color: #fff;
}

.data-table td {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.table-row {
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.selected-user {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.selected-user h4 {
  margin-bottom: 10px;
  color: #4CAF50;
}

.selected-user p {
  margin: 5px 0;
  opacity: 0.9;
}

/* 条件渲染演示 */
.conditional-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.conditional-content {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  border-radius: 8px;
  padding: 15px;
  color: #4CAF50;
}

/* 时间演示 */
.time-demo {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  text-align: center;
}

.time-demo p {
  margin: 10px 0;
  font-size: 16px;
  font-weight: bold;
}

/* 最佳实践 */
.best-practices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.practice-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.practice-item h4 {
  margin-bottom: 10px;
  color: #4CAF50;
  font-size: 16px;
}

.practice-item code {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #e0e0e0;
  display: block;
  overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-cards {
    grid-template-columns: 1fr;
  }
  
  .product-cards {
    grid-template-columns: 1fr;
  }
  
  .card-demo {
    grid-template-columns: 1fr;
  }
  
  .conditional-demo {
    grid-template-columns: 1fr;
  }
  
  .best-practices {
    grid-template-columns: 1fr;
  }
  
  .props-demo {
    padding: 15px;
  }
  
  .button-demo {
    justify-content: center;
  }
} 